<div class="usage-code" [class.singleRow]="isSingleRow">
  <div class="form-ipt">
    <nz-form-label [nzNoColon]="true"
    >{{ field?.fieldName }}</nz-form-label>
    <nz-form-control>
      <nz-select
        style="width: 260px;"
        nzShowSearch
        nzAllowClear
        [nzPlaceHolder]="field?.placeholder !== null ? field?.placeholder : ''"
        [(ngModel)]="usageCode"
        (ngModelChange)="onUsageCodeChange($event)"
        [nzDisabled]="usageCodeDisabled"
        [nzLoading]="usageCodeLoading"
      >
        <nz-option 
          *ngFor="let item of usageCodeList; let i = index" 
            [nzLabel]="item.usageCode" 
            [nzValue]="item.usageCode">
        </nz-option>
      </nz-select>
      <app-err-msg *ngIf="errorMsg"
          [errMsg]="errorMsg"
        ></app-err-msg>
    </nz-form-control>
  </div>
  
  <!-- 文本框 -->
  <div class="form-ipt address">
    <nz-form-label [nzNoColon]="true">用水地址</nz-form-label>
    <nz-form-control>
      <input nz-input 
        [(ngModel)]="address"
        placeholder="地址"
        [disabled]="addressDisabled"
      />
    </nz-form-control>
  </div>
</div>